package com.project.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.project.ds.UserActivityMapper;
import com.project.service.IUserActivityService;

/**
 * 用户活动实体类查询服务接口实现类
 * @author chenlz
 *
 */
@Service
@Transactional//后面配置具体的数据源的名称。例如：@Transactional(value="dataSourceTransactionManagerZnwlOrder")
public class UserActivityServiceImpl implements IUserActivityService {
	
	@Autowired
	private UserActivityMapper userActivityMapper;
	
	/**
	 * 保存
	 * @param userActivity
	 * @return
	 */
	@Override
	public void save(Long userId, Long activityId) {
		userActivityMapper.saveUserActivity(userId, activityId);
	}
}
